<div class="content-above">
	<div class="wd-slider">
		<div class="wd-slider-item">
			<?php echo $this->Html->image('banner1.png', array('alt' => 'Banner'))?> 
		</div>
		<div class="wd-slider-item">
			<?php echo $this->Html->image('banner2.png', array('alt' => 'Banner'))?> 
		</div>
		<div class="wd-slider-item">
			<?php echo $this->Html->image('banner3.png', array('alt' => 'Banner'))?> 
		</div>
	</div>

	<div class="intro">
		<?php echo $this->element('about_qat',array('cache'=>'1 day'));?> 
		<div class="wd-feature">
			<?php echo $this->element('home_news',array('cache'=>'1 day'));?> 
		</div>
	</div>
	</div>


	<div class="content-below">
	<div class="home_products">
	   <h3 class="title"><a href="#"><?php echo __('SẢN PHẨM TIÊU BIỂU');?></a></h3>
        <ul>
				<?php $i = 1; $product_class="";?>
            <?php foreach($products as $product):?>
					<?php if($i == 3)	$product_class="class='last_product'"; ?>
            <li <?=$product_class; ?>>
                <a href="#product<?php echo $product['Product']['id'] ?>" class="fancybox" title="<?php echo $product['Product']['title']?>">
                    <?php
                    if($product['Product']['image'] != '')
                        echo $html->image('/files/products/'. $html->getThumbnailName($product['Product']['image']));
                    else
                        echo $html->image('/files/products/no-picture.jpg');
                    ?> 
                    
        			<span><?php echo $product['Product']['title']; ?></span>                    
        		</a>
                <br />
                    <span><strong><?php echo $product['Product']['price']; ?></strong></span>
                <a class="order" href="<?php echo $html->url(array('plugin' => 'products','controller' => 'products','action' => 'add_cart',$product['Product']['alias']))  ;?>"><?php echo __('Mua hàng');?></a>
                <div class="product_fancybox" style="display: none;" id="product<?php echo $product['Product']['id'] ?>">
                     <h1 class="title"><?php echo $product['Product']['title']; ?></h1>                          
                    <?php
				if($product['Product']['image'] != '')
                            echo $html->image('/files/products/'. $product['Product']['image']);
                        else
                            echo $html->image('/files/products/no-picture.jpg');
                        ?>   
							<div style="clear:left"></div>	
							<span class="price"><strong><?php __("Giá: "); ?><?php echo $product['Product']['price']; ?></strong></span>
							<a class="order" href="<?php echo $html->url(array('plugin' => 'products','controller' => 'products','action' => 'add_cart',$product['Product']['alias']))  ;?>"><?php echo __('Mua hàng');?></a>
                </div>
            </li>
				<?php $i++; ?>
            <?php endforeach; ?>
        
        </ul>
	</div>

	<div class="home_video">
		<h3 class="title"><a href="#">VIDEO</a></h3>  
		<div class="video_content">   
			<object type="application/x-shockwave-flash" vmode="opaque" data="http://www.youtube.com/v/2DBvRuus6Aw?version=3&amp;hl=en_US&amp;rel=0" width="258" height="167">
				<param name="movie" value="http://www.youtube.com/v/2DBvRuus6Aw?version=3&amp;hl=en_US&amp;rel=0" />
				<param name="wmode" value="transparent" />
				<embed type="application/x-shockwave-flash" src="http://www.youtube.com/v/bJNR3uLAWpg&amp;hl=en_US&amp;fs=1&amp;"
			width="150" height="50" bgcolor="#ffffff" wmode="transparent" />
			</object>
		</div>
	</div>
	</div>
